If a window appeared on a workspace that was then quickly removed, we
could hit an assertion in mutter. Avoid that.
https://bugzilla.gnome.org/show_bug.cgi?id=648132
// the compositor finds out about them...
Mainloop.idle_add(Lang.bind(this,
function () {
- if (this.actor && metaWin.get_compositor_private())
+ if (this.actor &&
+ metaWin.get_compositor_private() &&
+ metaWin.get_workspace() == this.metaWorkspace)
this._doAddWindow(metaWin);
return false;
}));
// the compositor finds out about them...
Mainloop.idle_add(Lang.bind(this,
function () {
- if (this.actor && metaWin.get_compositor_private())
+ if (this.actor &&
+ metaWin.get_compositor_private() &&
+ metaWin.get_workspace() == this.metaWorkspace)
this._doAddWindow(metaWin);
return false;
}));